package com.pcrtool.calculateequipment.controller;


import com.pcrtool.calculateequipment.entity.UnitDisplay;
import com.pcrtool.calculateequipment.service.UnitDisplayService;
import com.pcrtool.pcrtoolcommon.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yzs
 * @since 2022-01-02
 */
@RestController
@RequestMapping("/calculateequipment/unit-display")
public class UnitDisplayController {
    @Autowired
    UnitDisplayService unitDisplayService;

    @PostMapping("userbox/{userid}")
    public R userbox(@PathVariable Long userid){
        UnitDisplay display = unitDisplayService.getById(userid);
        return R.ok().put("data",display);
    }
}

